package com.globant.datascience.recommender;

import java.util.List;

import org.apache.mahout.cf.taste.recommender.RecommendedItem;

public class RecommenderDemo {

	private static String DATA_FILE_NAME = "libros.csv";
	
	private static long testid = 276725;

	public static void main(String[] args) throws Exception {
		ShoppingCartRecommender shoppingCartRecommender = new ShoppingCartRecommender();
		shoppingCartRecommender.initRecommender(DATA_FILE_NAME);
		
		long[] similarUserIds = shoppingCartRecommender.getSimilarUserIds(testid, 10);
		shoppingCartRecommender.printSimilarUserIds(testid, similarUserIds);
		
		List<RecommendedItem> recommendations = shoppingCartRecommender.recommend(testid, 10);
		shoppingCartRecommender.printRecommendations(recommendations);
		
	}
}
